#pragma once
#include "Shape.h"
class Intersection;
class Triangle : public Shape{
public:
	Triangle(vec4 _pos, vec3 _rot, vec3 _pt1, vec3 _pt2, vec3 _pt3);
	~Triangle();

	
	bool intersect(Intersection &_int);

	vec4 getColor(Intersection &_int);
	
	vec3 norm();

	vec3 getMaxBound();
	vec3 getMinBound();
	bool isBounded(){ return true; }
	vec3 getCenter();
private:
	vec3 verts[3];			//the actual vertices
	vec3 theNorm;			//the triangle's surface normal
	vec3 edgeNorms[3];		//an array of vectors which are perpendicular to an edge and the triangle's normal
	vec3 theCenter;			//the geometric center of the triangle
};

